Frame Object Example

The following example sets a blue, double-line frame on a chart backdrop.

Private Sub Command1_Click()
   With MSChart1.backdrop.Frame
      .Style = VtFrameStyleDoubleLine
      .Width = 2
      .FrameColor.Set 0, 0, 255   ' Blue frame.
      .SpaceColor.Set 255, 0, 0   ' Red spacing.
   End With
End Sub